package com.smartEdu.controller.web;

import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.smartEdu.commons.constant.JspView;

@Controller
@RequestMapping(value="/web/")
public class DashBoardController extends WebBaseController{
	
	@RequestMapping(value="dashboard")
	public ModelAndView login(HttpSession httpsession, Model model, ModelAndView modelAndView) {
//		LogCvt.info("sessionlogin"+request.getSession().getAttribute(Tag_Tips.HASLOGIN).toString());
		try {
			GetUidFromSession(httpsession, model);
			modelAndView.setViewName(JspView.DASHBOARD.getName());
		}
		catch(Exception e) {
			modelAndView.setViewName("redirect:/login");
		}
		return modelAndView;
	}

}
